package net.wanho.hospital.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import net.wanho.hospital.po.Orders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 汤小洋
 * @since 2023-12-27
 */
public interface OrdersMapper extends BaseMapper<Orders> {

    List<Orders> selectByPid(Integer pId);

    List<Orders> selectOrdersByNull(@Param("dId") Integer dId, @Param("oStart") String oStart);

    IPage<Orders> selectOrderByDid(Page<Orders> page, @Param("ew") QueryWrapper<Orders> wrapper);
}
